﻿namespace EzDesk.DevHelper.DbMgr.FeedStudio.ToEzLanguage
{
    public class LinkProcessor : RegexReplaceProcessor
    {
        public override string[] RegexStrs
        {
            get
            {
                return new string[] { 
                    @"<ez:target (?<content>.*?)>",
                    @"<ez:target (?<attr>.*?)><ez:text>(?<content>.*?)</ez:text></ez:target>"
                };
            }
        }

        public override string[] ReplaceStrs
        {
            get
            {
                return new string[] { 
                    @"<ez:target [${content}]>",
                    @"_${attr}${content}_"
                };
            }
        }
    }
}
